package com.lanting.meetingserver.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lanting.meetingserver.base.BaseDao;
import com.lanting.meetingserver.domain.User;
import com.lanting.meetingserver.query.UserQuery;





public interface UserDao extends BaseDao<User>{
	
	 
	
	/***
	 * 根据主键获取用户信息
	 * @param id 用户Id
	 * @return
	 */
	User getUserById(int id);
	
	/**
	 * 根据用户编号和密码获取用户实体
	 * */
	User getUserByLoginIdAndPassord(@Param(value="loginId")String loginId,@Param(value="userPassword")String userPassword);
	
	List<User> getMeetingsByMeetingId(@Param(value="meetingId") int meetingId);
	
	User getUserByLoginId(@Param(value="loginId")String loginId);
	
	List<User> getUserByEmail(@Param(value="email") String email);
	
	List<User> getSpeakersByMeetingId(@Param(value="meetingId") int meetingId);
	
	List<User> getListenersByMeetingId(@Param(value="meetingId") int meetingId);
	
	List<User> getMeetingUserList(UserQuery query);
	int getMeetingUserListCount(UserQuery query);
	
}